#ifndef BRIGHTNESSDIALOG_H
#define BRIGHTNESSDIALOG_H

#include <QDialog>

namespace Ui {
class BrightnessDialog;
}

class BrightnessDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit BrightnessDialog(QWidget *parent = 0);
    ~BrightnessDialog();

signals:
    void brightnessChanged(int);
    void contrastChanged(int);
    void applyOperator(QString);
    void cancelOperator();

protected:
    void closeEvent(QCloseEvent *);
    void paintEvent(QPaintEvent *);
    void showEvent(QShowEvent *);

private slots:
    void emitBrightnessChanged(int brightness);
    void emitContrastChanged(int contrast);
    void applyButtonClicked();
    void cancelButtonClicked();
    
private:
    Ui::BrightnessDialog *ui;
};

#endif // BRIGHTNESSDIALOG_H
